﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class BlacksmithNPC:NPCfather
    {
        private string xiubu;
        private string qianghua;
        private string dazao;
        public string Xiubu
        {
            get { return this.xiubu; }
            set { this.xiubu = value; }
        }
        public string Qianghua
        {
            get { return this.qianghua; }
            set { this.qianghua = value; }
        }
        public string Dazao
        {
            get { return this.dazao; }
            set { this.dazao = value; }
        }
        public BlacksmithNPC(string name, NPC npc, string xiubu, string qianghua, string dazao) : base(name, npc)
        {
            this.qianghua = qianghua;
            this.xiubu = xiubu;
            this.dazao = dazao;
        }
        public override void Speak()
        {
            Console.WriteLine("NPC{0},{1},{2},{3}",this.Name,this.qianghua,this.xiubu,this.dazao);
        }
    }
}
